import axios from '@/utils/axios'

// 查询宿舍楼信息
export const queryDormBuild = () => {
  return axios.post('/api/dor/dor-client/cms/dormBuilding/queryDormBuild')
}

//编辑宿舍楼信息
export const updateDormBuild = (data) => {
  return axios.post('/api/dor/dor-client/cms/dormBuilding/update', data, {
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//删除宿舍楼信息
export const deleteDormBuild = (id) => {
  return axios.post(`/api/dor/dor-client/cms/dormBuilding/delete?id=${id}`, {
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//新增宿舍楼信息
export const addDormBuild = (data) => {
  return axios.post('/api/dor/dor-client/cms/dormBuilding/add', data, {
    headers: {
      'Content-Type': 'application/json'
    }
  })
}